<template>
	<view class="box" :style="{'padding-top':systemHeight+29+'px'}">
		<view class="head">
			<image class="back" src="/static/img/back.png" @click="back()"></image>
			<view>Add emergency contact person</view>
			<view class="right"></view>
		</view>
		<view class="small_title">Withdrawal limit</view>
		<view class="inpu_box">
			<input class="inpu" placeholder="Enter withdrawal limit" v-model="money"/>
			<view class="all" @click="all()">ALL</view>
		</view>
		<view class="remarks">Can withdraw funds <text id="mk">MK</text><text id="nums">{{nums}}</text></view>
		<view class="small_title">Mobile Number</view>
		<input class="inpu" placeholder="Enter your phone number" v-model="number"/>
		<view class="text">Please enter the correct phone number, and our st- aff will con</view>
		<view class="submit">Submit</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				systemHeight: null,
				//总金钱
				nums:'5000',
				//要提现的
				money:'',
				//手机号
				number:''
			}
		},
		created() {
			this.systemHeight = uni.getSystemInfoSync().statusBarHeight
		},
		methods: {
			back(){
				uni.navigateBack()
			},
			rule(){
				uni.navigateTo({
					url:"/pages/promotion/rules"
				})
			},
				//点击all提现全部
			all(){
				this.money=this.nums
			}
		}
	}
</script>

<style>
	.box{
		position: fixed;
		width: 100%;
		height: 100vh;
	}
	.head{
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 92%;
		margin: 0rpx auto 56rpx;
		font-family: Mont;
		font-weight: bold;
		font-size: 32rpx;
	}
	.back{
		width: 20rpx;
		height: 36rpx;
	}
	.right{
		width: 20rpx;
	}
	.title{
		font-family: Mont;
		font-weight: 600;
		font-size: 28rpx;
	}
	.inpu{
		width: 92%;
		height: 92rpx;
		background: #F4F4F4;
		border-radius: 30rpx;
		padding-left: 32rpx;
	}
	.small_title{
		width: 92%;
		margin: 0rpx auto 27rpx;
		font-family: Mont;
		font-weight: 600;
		font-size: 28rpx;
	}
	.inpu_box{
		position: relative;
		width: 100%;
	}
	.inpu{
		width: 92%;
		box-sizing: border-box;
		margin: 0rpx auto 27rpx;
	}
	.all{
		position: absolute;
		top: 50%;
		right:64rpx;
		transform: translate(0,-50%);
		font-family: Mont;
		font-weight: 500;
		font-size: 28rpx;
		color: #34BA78;
	}
	.remarks{
		width: 92%;
		margin: 0rpx auto 52rpx;
		font-family: Mont;
		font-weight: 300;
		font-size: 28rpx;
		color: #757575;
	}
	#mk{
		font-size: 18rpx;
		margin: 0rpx 0rpx 0rpx 10rpx;
	}
	#nums{
		font-size: 28rpx;
	}
	.remarks text{
		color: #34BA78;
	}
	.text{
		width: 92%;
		margin: 0rpx auto 52rpx;
		font-family: Mont;
		font-weight: 500;
		font-size: 26rpx;
		color: #040404;
	}
	.submit{
		position: absolute;
		bottom: 190rpx;
		left: 50%;
		transform: translate(-50%, 0);
		width: 690rpx;
		height: 92rpx;
		background: #34BA78;
		border-radius: 46rpx;
		font-family: Mont;
		font-weight: bold;
		font-size: 30rpx;
		color: white;
		line-height: 92rpx;
		text-align: center;
	}
</style>
